#ifndef SINGLETON_H
#define SINGLETON_H

#include <QWidget>
#include <QByteArray>

class Singletoncurrent
{
private:
    static Singletoncurrent * p_instance;
    Singletoncurrent() {}
    Singletoncurrent( const Singletoncurrent& );
    Singletoncurrent& operator=( Singletoncurrent& );

public:
    static Singletoncurrent * getInstance() {
        if(!p_instance)
            p_instance = new Singletoncurrent();
        return p_instance;
    }

    QString name;
    QString surname;
    QString patronymic;
    QString login;
    QString password;
    QString role;
    QByteArray image;
};

#endif // SINGLETON_H
